package com.group01.community.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.group01.community.entity.ZyCommunityInteraction;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author xuzw
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZyCommentVo extends ZyCommunityInteraction {

    /**
     * 业主昵称
     */
    private String ownerNickName;

    /**
     * 业主头像
     */
    private String ownerPortrait;

    /**
     * 二楼昵称
     */
    private String zyoNickName;

    /**
     * 二楼头像
     */
    private String zyoPortrait;

    /**
     * 社区互动内容
     */
    private String zcComment;

    /**
     * 评论的创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime zcCreateTime;

    /**
     * 评论的Id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long zcCommentId;
}
